<!DOCTYPE html>
<html lang="en">
<head>
    <!--
    @Author 硕鼠
    @Date 2020/4/11 11:37
    @Version 1.0
    @Description 编辑操作(对记录进行更新操作)
  -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>layout 后台大布局 - Layui</title>

    <link rel="stylesheet" href="layui/css/layui.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">layui 后台布局</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="">控制台</a></li>
            <li class="layui-nav-item"><a href="">商品管理</a></li>
            <li class="layui-nav-item"><a href="">用户</a></li>
            <li class="layui-nav-item">
                <a href="javascript:;">其它系统</a>
                <dl class="layui-nav-child">
                    <dd><a href="">邮件管理</a></dd>
                    <dd><a href="">消息管理</a></dd>
                    <dd><a href="">授权管理</a></dd>
                </dl>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
                    贤心
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">基本资料</a></dd>
                    <dd><a href="">安全设置</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="">退了</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">新闻管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="http://localhost:9092/userInsert.html">增加新闻</a></dd>
                        <!--        http://localhost:9092/listShow.html不能写成http://localhost:9092/newsList不然是一个字符串数据                -->
                        <dd><a href="http://localhost:9092/listShow.html">新闻列表</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域-需要编写 -->
        <div style="padding: 15px;">
            <form action="http://localhost:9092/addUserNum" method="get" class="layui-form">
                <div class="layui-form-item">
                    <label class="layui-form-label">新闻编号</label>
                    <div class="layui-input-inline">
                        <input type="text" name="id" id="id" lay-verify="required" placeholder="修改编号" class="layui-input" value="${user.id}"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">新闻标题</label>
                    <div class="layui-input-inline">
                        <input type="text" name="title" id="title" lay-verify="required" placeholder="修改标题" class="layui-input" value="${user.title}"/>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">新闻作者</label>
                    <div class="layui-input-inline">
                        <input type="text" name="author" id="author" lay-verify="required" placeholder="修改作者" class="layui-input"value="${user.author}"/>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">新闻内容</label>
                    <div class="layui-input-block">
                        <textarea  name="note" id="note" lay-verify="required"  class="layui-textarea"/>${user.note}</textarea>
                    </div>
                </div>

                <!--   按钮     -->
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button lay-submit="" class="layui-btn" lay-filter="go">增加</button>
                        <button type="reset" class="layui-btn">重置</button>
                    </div>
                </div>

            </form>

        </div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © layui.com - 底部固定区域
    </div>
</div>
<script src="layui/layui.js"></script>
<script>
    layui.use(['element','form','jquery'], function(){ //需要增加这个“form”,这个样的话verify才会奏效，并且下面的阻止表单跳转才奏效
        var element = layui.element;
        var $ = layui.jquery;
        var form = layui.form;


    });
</script>
</body>
</html>